package com.wsl.springbootsecurity.controller;

import com.wsl.springbootsecurity.user.Msg;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author:WangShuliang
 * @Description:
 * @Date:Created in 16:33 2017/12/1
 * @Modified by:
 */
@Controller
public class HomeController {
    @RequestMapping("/")
    public String index(Model model){
        Msg msg= new Msg("测试标题","测试内容","额外信息,只对管理员显示");
        model.addAttribute("msg",msg);
        return "home";
    }
}